package com.ruoyi.lol.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.lol.domain.LolGameAnalysis;
import com.ruoyi.lol.service.ILolGameAnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 战绩分析Controller
 * 
 * @author ruoyi
 * @date 2025-04-20
 */
@RestController
@RequestMapping("/lol/analysis")
public class LolGameAnalysisController extends BaseController
{

    @Autowired
    private ILolGameAnalysisService lolGameAnalysisService;
    /**
     * 查询游戏记录列表
     */
    @PreAuthorize("@ss.hasPermi('lol:analysis:list')")
    @GetMapping("/list")
    public TableDataInfo list(LolGameAnalysis lolGameAnalysis)
    {
        startPage();
        List<LolGameAnalysis> list = lolGameAnalysisService.selectLolGameAnalysisList(lolGameAnalysis);
        return getDataTable(list);
    }


}
